<template>
  <div class="list-bottom">
    <div class="xiaomi">
      <img class="img" src="/1.png"/>
      <p>小米</p>
    </div>
    <div class="car">
      <img class="img" src="/2.png"/>
      <p>购物车</p>
    </div>
    <div class="buttom-car">
        <button>加入购物车</button>
        <button @click="funa()">立即购买</button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    funa(){
      this.$router.push("/Pay")
    }
  },
};
</script>

<style scoped>
.list-bottom {
  width: 100%;
  height: 0.7rem;
  display: flex;
  align-items: center;
  /* position: fixed;
  bottom: 0; */
 
}
.car{
  margin-right: 0.5rem;
}
.img{
  width: 0.25rem;
  height: 0.25rem;
  margin-left: 0.2rem;
}
p{
    margin-left: 0.2rem;
}
.buttom-car button{
  width: 0.9rem;
  height: 0.35rem;
  color: white;
  font-size: 0.14rem;
  border:none
}
.buttom-car button:nth-of-type(1){
    border-radius: 0.2rem 0 0rem 0.2rem; 
    background: rgb(240, 206, 123) 
  
}
.buttom-car button:nth-of-type(2){
    border-radius: 0 0.2rem 0.2rem 0; 
    background: rgb(240, 78, 46);
}
</style>